home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / povray / scenes / level2 / room.pov < prev    next >
Text File  |  1994-03-08  |  3KB  |  165 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Drew Wells
  4.  
  5. // Room.pov - Empty room created for cis Comart Raytracing Group Project
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. /* Camera Facing North*/
  12. camera {
  13.    direction <0.0, 0.0, 1.5>
  14.    up  <0.0, 1.0, 0.0>
  15.    right <4/3, 0.0, 0.0>
  16.    translate < 10.0, 5.0, -30.0>
  17.    look_at <0.0, 5.0, 0.0>
  18. }
  19.  
  20. /*************************************************/
  21. /* Define objects for use in scene               */
  22. /* Your object should be DECLAREd here           */
  23. /*************************************************/
  24.  
  25. #declare North_Wall =
  26. plane { z, 10.0
  27.    pigment { 
  28.       granite
  29.       scale <1.0, 20.0, 1.0>
  30.       quick_color Yellow
  31.    }
  32. }
  33. /* South Wall commented out so camera can see in*/
  34. #declare South_Wall =
  35. plane { z, -10.0
  36.    pigment { 
  37.       Cherry_Wood
  38.       scale 10.0
  39.       quick_color Red
  40.    }
  41.    finish { crand 0.05 }
  42. }
  43.  
  44. /* Not visible with current viewpoint*/
  45. /* But could be useful for light coming through window etc. */
  46.  
  47. #declare East_Wall =
  48. plane { x, 15.0
  49.    pigment  {
  50.       Jade
  51.       scale 10.0
  52.       quick_color Green
  53.    }
  54. }
  55.  
  56. #declare West_Wall =
  57. plane { x, -15.0
  58.    pigment { 
  59.       White_Wood
  60.       scale <15.0, 20.0, 3.0>
  61.       quick_color White
  62.    }
  63.    finish { crand 0.05 }
  64. }
  65.  
  66. #declare Ceiling =
  67. plane { y, 15.0
  68.    pigment { 
  69.       Red_Marble
  70.       scale 10.0
  71.       quick_color Red
  72.    }
  73. #declare Floor =
  74. plane { y, 0.0
  75.    pigment { 
  76.       Pine_Wood
  77.       scale <40.0, 3.0, 3.0>
  78.       quick_color Violet
  79.    }
  80.    finish { crand 0.05 }
  81. }
  82.  
  83. /*******************************************/
  84. /* Scene description                       */
  85. /*******************************************/
  86. object {
  87.    North_Wall
  88. }
  89.  
  90. /* Comment out South Wall so camera can see in */
  91. /*object {
  92.   South_Wall
  93. }*/
  94.  
  95. object {
  96.    East_Wall
  97. }
  98.  
  99. object {
  100.    West_Wall
  101. }
  102.  
  103. object {
  104.    Ceiling
  105. }
  106.  
  107. object {
  108.    Floor
  109. }
  110.  
  111. /* Colored spheres to help visualize coordinates*/
  112. sphere {
  113.    <0.0, 7.0, 9.0> 1.0
  114.    pigment { Yellow }
  115. }
  116.  
  117. /* South sphere not visible in example gif*/
  118. /*object {South}
  119. sphere { <0.0, 5.0, -10.0>, 1.0
  120.     pigment { Red }
  121. }*/
  122.  
  123. sphere { /*East*/
  124.    <10.0, 7.0, 0.0>, 1.0
  125.    pigment { color Green }
  126. }
  127.  
  128. sphere { /*West*/
  129.    <-14.0, 7.0, 0.0>, 1.0
  130.    pigment { Blue }
  131. }
  132.  
  133. sphere { /*Up*/
  134.    <0.0, 14.0, 0.0>, 1.0
  135.    pigment { White }
  136. }
  137.  
  138. sphere { /*Down*/
  139.    <0.0, 1.0, 0.0>, 1.0
  140.    pigment { color Violet }
  141. }
  142.  
  143. /*Crude Spot light - feel free to add more light sources.*/
  144. union {
  145.    intersection {
  146.       sphere { <0.0, 0.0, 0.0>, 2.0 inverse }
  147.       sphere { <0.0, 0.0, 0.0>, 2.1 }
  148.       plane {  <0.0, 0.0, 1.0>, 1.2 }
  149.  
  150.       pigment {
  151.          Brown_Agate
  152.          scale 3.0
  153.       }
  154.       finish { specular 1.0 }
  155.       rotate <45.0, -40.0, 0.0>
  156.       translate <10.0, 10.0, -8.0>
  157.    }
  158.  
  159.    light_source { <10.0, 10.0, -8.0> colour White }
  160. }
  161.  
  162. /* Far light source to light where spot doesn't */   
  163. light_source { <-10.0, 10.0, -40.0> colour White }
  164.